CXX = g++
CPPFLAGS =
CXXFLAGS =
DEFINES =
LDFLAGS = -lpthread \
          -licui18n \
          `pkg-config --libs gtk+-2.0 webkit-1.0`
INCLUDES = -I../ \
           -I./ \
		   `pkg-config --cflags gtk+-2.0 webkit-1.0`

SRCS = $(shell find ./src/ -name "*.cpp")

OBJS = $(SRCS:%.cpp=%.o)

TARGET = TestParser

$(TARGET): $(OBJS)
	$(CXX) -O3 -o $(TARGET) $(CPPFLAGS) $(CXXFLAGS) $(OBJS) $(INCLUDES) $(DEFINES) $(LDFLAGS)

%.o: %.cpp
	$(CXX) -O3 -c $< -o $@ $(INCLUDES) $(DEFINES) $(CPPFLAGS)

clean:
	rm $(TARGET) $(OBJS)
